import request from '#/utils/requestAbort.js';

// 查询省列表
export async function queryProvinceList(menuCode) {
  return request(`/power/dataPower/common/${menuCode}/t_station`, {
    method: 'GET',
  });
}

// export async function getStationLevelThree(menuCode) {
//   return request(`/power/station/getStationLevelThree`, {
//     method: 'post',
//     data: menuCode,
//   });
// }

// 价差预测
export async function getSpotPriceDifferencePriceForecast(params) {
  return request('/predictive/spotMarketPriceDifference/getSpotPriceDifferencePriceForecast', {
    method: 'POST',
    data: params,
  });
}

// 价差分布和统计
export async function getPriceDifferenceDistributionStatistical(params) {
  return request(
    '/predictive/spotMarketPriceDifference/getPriceDifferenceDistributionStatistical',
    {
      method: 'POST',
      data: params,
    },
  );
}

// 价差成因分析
export async function queryPriceSpaceDiff(params) {
  return request('/predictive/priceDiffReasonAnalyse/queryPriceSpaceDiff', {
    method: 'POST',
    data: params,
  });
}

// 现货出清价差
export async function queryPriceDiffReasonAnalyse(params) {
  return request('/predictive/priceDiffReasonAnalyse/queryPriceDiffReasonAnalyse', {
    method: 'POST',
    data: params,
  });
}

// 竞价空间与价格相关曲线
export async function queryPriceSpaceAndClearPrice(params) {
  return request('/predictive/priceDiffReasonAnalyse/queryPriceSpaceAndClearPrice', {
    method: 'POST',
    data: params,
  });
}
